/**
 * @(#)UserClientInfoLogServiceImpl.java 2018年1月29日
 * Copyright(C) 2018 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import edu.hziee.common.queue.DelayExecuteBuffer;
import org.jsbd.boss.dao.IUserClientInfoLogDAO;
import org.jsbd.boss.domian.channel.QueryUserClientVo;
import org.jsbd.boss.domian.channel.UserClientInfo;
import org.jsbd.boss.service.IUserClientInfoLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * TODO 请加入本类的说明
 *
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class UserClientInfoLogServiceImpl implements IUserClientInfoLogService {
    public static final Logger LOGGER = LoggerFactory.getLogger(UserClientInfoLogServiceImpl.class);

    @Resource(name = "userClientLogDao2")
    private IUserClientInfoLogDAO userClientInfoLogDAO2;

    @Resource(name = "userClientLogBuffer2")
    private DelayExecuteBuffer<UserClientInfo> userClientLogBuffer2;

    /*
     * (non-Javadoc)
     *
     * @see
     * org.jsbd.boss.service.IUserClientInfoLogService#save(org.jsbd.boss.domian
     * .channel.UserClientInfo)
     */
    @Override
    public void save(UserClientInfo clientInfo) {
        userClientLogBuffer2.add(clientInfo);
    }

    /*
     * (non-Javadoc)
     *
     * @see
     * org.jsbd.boss.service.IUserClientInfoLogService#selectClientInfo(org.
     * jsbd.boss.domian.channel.QueryUserClientVo)
     */
    @Override
    public UserClientInfo selectClientInfo(QueryUserClientVo queryVo) {
        return userClientInfoLogDAO2.selectClientInfo(queryVo);
    }


}
